import { get,postRequestBody } from "../utils/request"

export const getDictList = () => get("/api/dict/list");
export const removeDict = (id) => get("/api/dict/delete/"+id);
export const getDictInfo = (id) => get("/api/dict/info/"+id);
export const getDictPage = (param) => postRequestBody("/api/dict/page",param);
export const addDict = (param) => postRequestBody("/api/dict/add",param);
export const updateDict = (param) => postRequestBody("/api/dict/update",param);


export const getDictGroupList = () => get("/api/dict_group/list");
export const getDictListByGroupId = (id) => get("/un-auth-api/dict_group/get_dict_list_by_id/"+id);
export const searchList = (param) => postRequestBody("/api/dict_group/search_list",param);
export const removeDictGroup = (id) => get("/api/dict_group/delete/"+id);
export const getDictGroupInfo = (id) => get("/api/dict_group/info/"+id);
export const getDictGroupPage = (param) => postRequestBody("/api/dict_group/page",param);
export const addDictGroup = (param) => postRequestBody("/api/dict_group/add",param);
export const updateDictGroup = (param) => postRequestBody("/api/dict_group/update",param);

